import http from "@/utils/http";
const prefixUrl = {
  queryAuthRandom: "/analysis/getAuthRadom",
  querySignature: "/analysis/applyVodSignature",
  queryUserList: "/analysis/account/list",
  queryRecordList: "/analysis/account/assignList",
  queryC: "/analysis/account/mobileSearch",
  // 分配信息
  queryDispense: "/analysis/account/assignInfo",
  createRobot: "/analysis/account/addRobot",
  createPerson: "/analysis/account/addTrueman",
  uploadAvatar: "/analysis/uploadImage",
  updateAccountPsd: "/analysis/account/editPassword",
  // updateAdminPsd: "/analysis/analysis-user/editPassword",
  updateUserPsd: "/analysis/user/editSelfPassword",
  updateStatus: "/analysis/account/disable",
  updateAssign: "/analysis/account/assign",
  queryDicts: "/analysis/account/addInfo",
  updateUser: "/analysis/account/edit",
  queryDataById: "/analysis/account/detail",
  updateVip: "/analysis/account/openMember",
  updateTags: "/analysis/account/editTag",
  updateDynamic: "/analysis/account/editDynamics",
  getOccupationPosts: "/analysis/account/getOccupationPosts",
  queryCurrencyUnit: "/analysis/getCurrencyByCountryCode",
};
export default {
  role: {
    queryAuthRandom: "POST:" + prefixUrl.queryAuthRandom,
    querySignature: "POST:" + prefixUrl.querySignature,
    queryUserList: "POST:" + prefixUrl.queryUserList,
    queryRecordList: "POST:" + prefixUrl.queryRecordList,
    queryC: "POST:" + prefixUrl.queryC,
    queryDispense: "POST:" + prefixUrl.queryDispense,
    createRobot: "POST:" + prefixUrl.createRobot,
    createPerson: "POST:" + prefixUrl.createPerson,
    uploadAvatar: "POST:" + prefixUrl.uploadAvatar,
    updateAccountPsd: "POST:" + prefixUrl.updateAccountPsd,
    // updateAdminPsd: "POST:" + prefixUrl.updateAdminPsd,
    updateUserPsd: "POST:" + prefixUrl.updateUserPsd,
    updateStatus: "POST:" + prefixUrl.updateStatus,
    updateAssign: "POST:" + prefixUrl.updateAssign,
    queryDicts: "POST:" + prefixUrl.queryDicts,
    updateUser: "POST:" + prefixUrl.updateUser,
    queryDataById: "POST:" + prefixUrl.queryDataById,
    updateVip: "POST:" + prefixUrl.updateVip,
    updateTags: "POST:" + prefixUrl.updateTags,
    updateDynamic: "POST:" + prefixUrl.updateDynamic,
    queryCurrencyUnit: "POST:" + prefixUrl.queryCurrencyUnit,
  },
  queryCurrencyUnit(params = {}) {
    return http.post(prefixUrl.queryCurrencyUnit, params);
  },
  getOccupationPosts(params = {}) {
    return http.post(prefixUrl.getOccupationPosts, params);
  },
  queryAuthRandom(params = {}) {
    return http.post(prefixUrl.queryAuthRandom, params);
  },
  querySignature(params = {}, config = {}) {
    return http.post(prefixUrl.querySignature, params, config);
  },
  updateDynamic(params = {}) {
    return http.post(prefixUrl.updateDynamic, params);
  },
  updateTags(params = {}) {
    return http.post(prefixUrl.updateTags, params);
  },
  updateVip(params = {}) {
    return http.post(prefixUrl.updateVip, params);
  },
  queryDataById(params = {}) {
    return http.post(prefixUrl.queryDataById, params);
  },
  queryDicts(params = {}) {
    return http.post(prefixUrl.queryDicts, params);
  },
  queryUserList(params = {}) {
    return http.post(prefixUrl.queryUserList, params);
  },
  queryRecordList(params = {}) {
    return http.post(prefixUrl.queryRecordList, params);
  },
  queryC(params = {}) {
    return http.post(prefixUrl.queryC, params);
  },
  queryDispense(params = {}) {
    return http.post(prefixUrl.queryDispense, params);
  },
  createRobot(params = {}) {
    return http.post(prefixUrl.createRobot, params);
  },
  createPerson(params = {}) {
    return http.post(prefixUrl.createPerson, params);
  },
  uploadAvatar(params = {}, config = {}) {
    return http.post(prefixUrl.uploadAvatar, params, config);
  },
  updateAccountPsd(params = {}) {
    return http.post(prefixUrl.updateAccountPsd, params);
  },
  // updateAdminPsd(params = {}) {
  //   return http.post(prefixUrl.updateAdminPsd, params);
  // },
  updateUserPsd(params = {}) {
    return http.post(prefixUrl.updateUserPsd, params);
  },
  updateStatus(params = {}) {
    return http.post(prefixUrl.updateStatus, params);
  },
  updateAssign(params = {}) {
    return http.post(prefixUrl.updateAssign, params);
  },
  updateUser(params = {}) {
    return http.post(prefixUrl.updateUser, params);
  },
};
